<%--
  Created by IntelliJ IDEA.
  User: dongsong
  Date: 2021/7/19
  Time: 12:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <%
      pageContext.setAttribute("key","pageContext-value");
      request.setAttribute("key","request-value");
      session.setAttribute("key","session-value");
      application.setAttribute("key","application-value");
  %>
  <%=pageContext.getAttribute("key") %><br/>
  <%=request.getAttribute("key") %><br/>
  <%=session.getAttribute("key") %><br/>
  <%=application.getAttribute("key") %><br/>
<%
    request.getRequestDispatcher("/context2.jsp").forward(request,response);
%>

</body>
</html>
